#!/bin/bash



# setup mysql
# sh -c "$(curl -fsSL https://gitee.com/boheyee/mall-script/raw/master/setup_gem.sh)"
echo "-------------------   gem ( 国内镜像 )  --------------------------"

echo "查看当前使用的源地址。"
echo "------------------------"
gem sources

echo "删除默认源命令"
echo "------------------------"
gem sources --remove https://rubygems.org/  

echo "添加国内源"
echo "------------------------"
gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/

echo "更新源的缓存"
echo "------------------------"
gem sources -u
